<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <title>lihaha</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="https://majestic.bootmb.com/vendors/mdi/css/materialdesignicons.min.css" />
    <link rel="stylesheet" href="https://majestic.bootmb.com/vendors/base/vendor.bundle.base.css" />
    <!-- endinject -->
    <!-- plugin css for this page -->
    <link rel="stylesheet" href="https://majestic.bootmb.com/vendors/datatables.net-bs4/dataTables.bootstrap4.css" />
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <link rel="stylesheet" href="https://majestic.bootmb.com/css/style.css" />
    <!-- endinject -->
    <link rel="shortcut icon" href="https://majestic.bootmb.com/images/favicon.png" />
    <script src="https://cdn.staticfile.org/echarts/4.8.0/echarts.min.js"></script>
    <style>
        .my_tables {
            border-collapse: collapse;
            border-color: #cfcfcf;
        }

        .my_tables th {
            padding: 15px;
        }

        .my_tables td {
            padding: 12px;
        }
    </style>
</head>

<body>
    <div class="container-scroller">
        <!-- partial:partials/_navbar.html -->
        <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
            <div class="navbar-brand-wrapper d-flex justify-content-center">
                <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">
                    <span>LIHAHA</span>
                    <button class="navbar-toggler navbar-toggler align-self-center" type="button"
                        data-toggle="minimize">
                        <span class="mdi mdi-sort-variant"></span>
                    </button>
                </div>
            </div>
            <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
                <ul class="navbar-nav mr-lg-4 w-100">
                    <li class="nav-item nav-search d-none d-lg-block w-100">
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text" id="search">
                                    <i class="mdi mdi-magnify"></i>
                                </span>
                            </div>
                            <input type="text" class="form-control" placeholder="请输入搜索的岗位" aria-label="search"
                                aria-describedby="search" name="keys" />
                        </div>
                    </li>
                </ul>
                <ul class="navbar-nav navbar-nav-right">
                    <li class="nav-item dropdown mr-1">
                        <a class="nav-link count-indicator dropdown-toggle d-flex justify-content-center align-items-center"
                            id="messageDropdown" href="#" data-toggle="dropdown">
                            <i class="mdi mdi-message-text mx-0"></i>
                        </a>
                    </li>
                    <li class="nav-item dropdown mr-4">
                        <a class="nav-link count-indicator dropdown-toggle d-flex align-items-center justify-content-center notification-dropdown"
                            id="notificationDropdown" href="#" data-toggle="dropdown">
                            <i class="mdi mdi-bell mx-0"></i>
                        </a>
                    </li>
                </ul>
                <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button"
                    data-toggle="offcanvas">
                    <span class="mdi mdi-menu"></span>
                </button>
            </div>
        </nav>
        <!-- partial -->
        <div class="container-fluid page-body-wrapper">
            <!-- partial:partials/_sidebar.html -->
            <nav class="sidebar sidebar-offcanvas" id="sidebar" style="position: fixed">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" href="index.html">
                            <i class="mdi mdi-home menu-icon"></i>
                            <span class="menu-title">回到首页</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section1">
                            <i class="mdi mdi-view-headline menu-icon"></i>
                            <span class="menu-title">详细数据</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section2">
                            <i class="mdi mdi-chart-pie menu-icon"></i>
                            <span class="menu-title">地区分析</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section3">
                            <i class="mdi mdi-grid-large menu-icon"></i>
                            <span class="menu-title">公司分析</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section4">
                            <i class="mdi mdi-emoticon menu-icon"></i>
                            <span class="menu-title">学历分析</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section5">
                            <i class="mdi mdi-file-document-box-outline menu-icon"></i>
                            <span class="menu-title">薪资分析</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#section7">
                            <i class="mdi mdi-signal menu-icon"></i>
                            <span class="menu-title">标签分析</span>
                        </a>
                    </li>
                </ul>
            </nav>
            <!-- partial -->
            <div class="main-panel" style="position: absolute; right: 0px">
                <div class="content-wrapper">
                    <!-- pyecharts -->
                    <div class="row" id="section1">
                        <div class="col-md-12 stretch-card">
                            <div class="card" style="overflow-x: scroll; white-space: nowrap">
                                <div class="card-body">
                                    <p class="card-title" style="font-size: 24px">{{ area }}地区--{{ keys }}岗位--详细信息</p>
                                    <div class="table-responsive"
                                        style="border-color: gray; border-collapse: collapse;">
                                        {{ table|safe }}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 地区分析 -->
                    <div style="
                        width: 970px;
                        height: 540px;
                        background-color: #fff;
                        margin-bottom: 30px;
                      " id="section2">
                        {% include 'company_map.html' %}
                    </div>

                    <!-- 公司分析 -->
                    <div style="width: 970px; height: 400px; background-color: #fff; margin-bottom: 30px;"
                        id="section3"></div>
                    <script type="text/javascript">
                        var myChart = echarts.init(document.getElementById('section3'));
                        myChart.setOption({{ company_data | safe }});
                    </script>

                    <!-- 学历分析 -->
                    <div style="
                width: 970px;
                height: 400px;
                background-color: #fff;
                margin-bottom: 30px;
              " id="section4"></div>
                    <script type="text/javascript">
                        // 基于准备好的dom，初始化echarts实例
                        var myChart = echarts.init(document.getElementById('section4'));
                        // 使用刚指定的配置项和数据显示图表。
                        myChart.setOption({{ degree_data | safe }});
                    </script>

                    <!-- 薪资分析 -->
                    <div style="
                width: 970px;
                height: 400px;
                background-color: #fff;
                margin-bottom: 15px;
              " id="section5"></div>
                    <script type="text/javascript">
                        // 基于准备好的dom，初始化echarts实例
                        var myChart = echarts.init(document.getElementById('section5'));
                        // 使用刚指定的配置项和数据显示图表。
                        myChart.setOption({{ salary_area_data | safe }});
                    </script>

                    <div style="
                        width: 970px;
                        height: 400px;
                        background-color: #fff;
                        margin-bottom: 30px;
                      " id="section6"></div>
                    <script type="text/javascript">
                        // 基于准备好的dom，初始化echarts实例
                        var myChart = echarts.init(document.getElementById('section6'));
                        myChart.setOption({{ salary_degree_data | safe }});
                    </script>

                    <!-- 标签分析 -->
                    <div style="
                        width: 970px;
                        height: 540px;
                        background-color: #fff;
                      " id="section7">
                        {% include 'laber_wordcloud.html' %}
                    </div>

                </div>
            </div>
        </div>
        <!-- page-body-wrapper ends -->
    </div>
    <!-- container-scroller -->
    <script>
        // 监听侧边栏链接点击事件
        const links = document.querySelectorAll("nav a");
        links.forEach((link) => {
            link.addEventListener("click", smoothScroll);
        });

        // 平滑滚动到锚点位置
        function smoothScroll(event) {
            event.preventDefault();
            const targetId = this.getAttribute("href");
            const targetElement = document.querySelector(targetId);

            if (targetElement) {
                window.scrollTo({
                    top: targetElement.offsetTop,
                    behavior: "smooth",
                });
            }
        }
    </script>

    <script src="https://majestic.bootmb.com/vendors/base/vendor.bundle.base.js"></script>
    <script src="https://majestic.bootmb.com/vendors/chart.js/Chart.min.js"></script>
    <script src="https://majestic.bootmb.com/vendors/datatables.net/jquery.dataTables.js"></script>
    <script src="https://majestic.bootmb.com/vendors/datatables.net-bs4/dataTables.bootstrap4.js"></script>
    <script src="https://majestic.bootmb.com/js/off-canvas.js"></script>
    <script src="https://majestic.bootmb.com/js/hoverable-collapse.js"></script>
    <script src="https://majestic.bootmb.com/js/template.js"></script>
    <script src="https://majestic.bootmb.com/js/dashboard.js"></script>
    <script src="https://majestic.bootmb.com/js/data-table.js"></script>
    <script src="https://majestic.bootmb.com/js/jquery.dataTables.js"></script>
    <script src="https://majestic.bootmb.com/js/dataTables.bootstrap4.js"></script>
    <script src="https://majestic.bootmb.com/js/jquery.cookie.js" type="text/javascript"></script>
</body>

</html>